Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 26: Controlling the Viewpoint

../ch26/26fig07.gif
Figure 26.7

The dungeon with multiple viewpoints available.

26fig07.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
    # Viewpoints
        Viewpoint {
            description "Forward view"
            position 0.0 1.6 5.0
        },
        Viewpoint {
            description "Corner view"
            position 3.0 1.6 3.0
            orientation 0.0 1.0 0.0 0.611
        },
        Viewpoint {
            description "60.0 FOV degree corner view"
            position 3.0 1.6 3.0
            orientation 0.0 1.0 0.0 0.611
            fieldOfView 1.047
        },
        Viewpoint {
            description "90.0 FOV degree corner view"
            position 3.0 1.6 3.0
            orientation 0.0 1.0 0.0 0.611
            fieldOfView 1.57
        },
    # Navigation
        NavigationInfo {
            type "WALK"
            speed 1.0
            headlight FALSE
            avatarSize [ 0.5, 1.6, 0.5 ]
        },
    # World
        Inline { url "dungeon.wrl" }
    ]
}